<?php

class Service{

    public $gstjTool;
    public $gspTool;
    public $fmsTool;
//    public $truckTool;
    public $gsptest;
    public $g7smartv2;
    public $travel;

    public function __construct() {
//        $this->gspTool = Factory::createDatabase('gsp');
//        $this->gsptest = Factory::createDatabase('gsptest');
//        $this->fmsTool = Factory::createDatabase('localhost');
//        $this->g7smartv2 = Factory::createDatabase('g7smartv2');
//        $this->truckTool = Factory::createDatabase('truck');
        $this->travel = Factory::createDatabase('travel');

    }

    public function savelog($query){
        file_put_contents("query.log", date("Y-m-d H:i:s")."\r\n".$query."\r\n",FILE_APPEND);
    }

    //--------------结尾-------------
}